reader = open("input.txt", "r")
writer = open("output.txt","w")

for line in reader:
    parts = line.split(" ")
    writer.write(parts[0] + " " + str(220*float(parts[1])) + "\n")